const router=require('koa-router')()
const user=require('../controller/user')
const system=require('../controller/system')
const baseConfig=require('../config/baseConfig')
/* GET users listing. */
router.post('/login',user.login);
router.post('/register',user.register);
router.get('/getToken',user.getUptoken);
router.post('/publish',user.publish);
router.get('/getCardList',user.getCardList);
router.post('/getChatInfo',user.getChatInfo);
router.post('/addAttention',user.addAttention);
router.post('/delPublish',user.delPublish);
router.post('/pubComment',user.pubComment);
router.post('/getCardCommentByCardId',user.getCardCommentByCardId);
router.post('/delComment',user.delComment);
router.post('/searchByKeyWord',user.searchByKeyWord);
router.get('/getCardList',user.getCardList);
router.post('/approval',user.approval);
router.post('/getapprovalList',user.getapprovalList);
router.post('/setApprovalStatus',user.setApprovalStatus);
router.post('/getapprovalDetail',user.getapprovalDetail);
router.post('/cancelApproval',user.cancelApproval);
router.get('/userlist',system.getUserList)
router.post('/logoff',system.logoff)
router.post('/getuserPermissions',system.getuserPermissions)
router.post('/setuserPermissions',system.setuserPermissions)
router.post('/getagreementDetail',user.getagreementDetail)
router.post('/getcomment',system.getcomment)
router.post('/getagreementList',user.getagreementList)
router.post('/updateSign',user.updateSign)
router.post('/setUserInfo',user.setUserInfo)
router.get('/getShareList',user.getShareList)
router.post('/editCollection',user.handlecollection)
router.post('/getCollectList',user.getCollectList)
router.post('/getMycollectionList',user.getMycollectionList)
router.post('/RealNameAuthentication',user.RealName_Authentication)
router.post('/addhistory',user.addhistory)
router.post('/getHistory',user.getHistory)
router.post('/getWhistleblowmanagement',system.getWhistleblowmanagement)
router.post('/getuserInfo',user.getuserInfo)

module.exports = router;
